package com.mystore.framework.mapper;


import com.mystore.common.cache.RedisCache;
import com.mystore.framework.pojo.User;
import icu.mhb.mybatisplus.plugln.base.mapper.JoinBaseMapper;
import org.apache.ibatis.annotations.*;

import java.io.Serializable;

@Mapper
@CacheNamespace(implementation = RedisCache.class)
public interface UserMapper extends JoinBaseMapper<User> {
    @Override
    @Options(useGeneratedKeys = true, keyProperty = "user_id")
    int insert(User entity);
}
